]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove some vestigial code
authorDan Winship <danw@gnome.org>
Thu, 3 Sep 2009 13:50:17 +0000 (09:50 -0400)
committerDan Winship <danw@gnome.org>
Thu, 3 Sep 2009 13:50:39 +0000 (09:50 -0400)
js/ui/workspaces.js

index 59d7ab7e233096cca5b18022bf3adef3f8a3ea49..4f0ee0ae90f201f6910cf8396c67ae5fd5ffe8ce 100644 (file)
@@ -893,7 +893,7 @@ Workspaces.prototype = {
             }
         }
         activeWorkspace.actor.raise_top();
-        this._positionWorkspaces(global, activeWorkspace);
+        this._positionWorkspaces(global);
 
         // Save the button size as a global variable so we can us it to create 
         // matching button sizes for workspace remove buttons.
@@ -958,7 +958,7 @@ Workspaces.prototype = {
         let activeWorkspaceIndex = global.screen.get_active_workspace_index();
         let activeWorkspace = this._workspaces[activeWorkspaceIndex];
 
-        this._positionWorkspaces(global, activeWorkspace);
+        this._positionWorkspaces(global);
         activeWorkspace.actor.raise_top();
 
         for (let w = 0; w < this._workspaces.length; w++)
@@ -1002,12 +1002,7 @@ Workspaces.prototype = {
     // first row.)
     //
     // FIXME: need to make the metacity internal layout agree with this!
-    _positionWorkspaces : function(global, activeWorkspace) {
-        if (!activeWorkspace) {
-            let activeWorkspaceIndex = global.screen.get_active_workspace_index();
-            activeWorkspace = this._workspaces[activeWorkspaceIndex];
-        }
-
+    _positionWorkspaces : function(global) {
         let gridWidth = Math.ceil(Math.sqrt(this._workspaces.length));
         let gridHeight = Math.ceil(this._workspaces.length / gridWidth);